package com.example.ArticleService;

import org.springframework.stereotype.Service;

@Service
public class ArticleService {
    public boolean publishArticle(String title, String content) {
        // 假设这里有发布文章的逻辑
        if (title == null || content == null) {
            throw new IllegalArgumentException("标题和内容不能为空");
        }
        // 进行发布操作
        return true; // 发布成功
    }
}